home *** CD-ROM | disk | FTP | other *** search
/ Aminet 15 / Aminet 15 - Nov 1996.iso / Aminet / dev / lang / FPL_v147.lha / fpl / src / Makefile.SUNOS < prev    next >
Makefile  |  1996-08-09  |  3KB  |  87 lines

  1. # $VER: FPL Makefile v1.0 94-08-11
  2.  
  3. ########################################################################
  4. #                                                                      #
  5. # fpl.library - A shared library interpreting script langauge.         #
  6. # Copyright (C) 1992-1994 FrexxWare                                    #
  7. # Author: Daniel Stenberg                                              #
  8. #                                                                      #
  9. # This program is free software; you may redistribute for non          #
  10. # commercial purposes only. Commercial programs must have a written    #
  11. # permission from the author to use FPL. FPL is *NOT* public domain!   #
  12. # Any provided source code is only for reference and for assurance     #
  13. # that users should be able to compile FPL on any operating system     #
  14. # he/she wants to use it in!                                           #
  15. #                                                                      #
  16. # You may not change, resource, patch files or in any way reverse      #
  17. # engineer anything in the FPL package.                                #
  18. #                                                                      #
  19. # This program is distributed in the hope that it will be useful,      #
  20. # but WITHOUT ANY WARRANTY; without even the implied warranty of       #
  21. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.                 #
  22. #                                                                      #
  23. # Daniel Stenberg                                                      #
  24. # Ankdammsgatan 36, 4tr                                                #
  25. # S-171 43 Solna                                                       #
  26. # Sweden                                                               #
  27. #                                                                      #
  28. # FidoNet 2:201/328    email:dast@sth.frontec.se                       #
  29. #                                                                      #
  30. ########################################################################
  31.  
  32. .SUFFIXES: .o .c .c~ .h .h~ .a .i
  33.  
  34. ################################################
  35. # Below follows all UNIX macros/actions/lines: #
  36. ################################################
  37.  
  38. LIB     = libfpl.a
  39. TARGET  = FPL
  40. OBJS    = script.o numexpr.o caller.o hash.o statement.o memory.o frontend.o\
  41.           reference.o sprintf.o scan.o sscanf.o compile.o
  42. LIBOBJS = script.o numexpr.o hash.o statement.o memory.o frontend.o \
  43.           reference.o sprintf.o scan.o compile.o sscanf.o
  44.  
  45. # if using the `gcc' compiler:
  46. CFLAGS  = -DSUNOS -DUNIX -ansi -pedantic -pipe -funsigned-char -g
  47. CC      = gcc
  48. LD      = ld
  49. AR      = ar
  50. RANLIB  = ranlib
  51.  
  52. all:    $(LIB) SFPL
  53.  
  54. $(LIB) : $(LIBDEP)
  55.     $(AR) ruv $(LIB) $(LIBOBJS)
  56.     $(RANLIB) $(LIB)
  57.  
  58. $(TARGET) : $(OBJS)
  59.     $(CC) $(OBJS) -L. -lfpl -o $(TARGET)
  60.  
  61. clean:
  62.     rm *.o
  63.     rm $(LIB) SFPL
  64.  
  65. .c.o:
  66.     $(CC) $(CFLAGS) -c $<
  67.  
  68. # This compiling is using -DSFPL to make the MALLOC() macro not to use the
  69. # global `mem' variable!
  70. SFPL: caller.c FPL.h script.h Makefile.SUNOS
  71.     $(CC) $(CFLAGS) -DSFPL -o SFPL caller.c -L. -lfpl
  72.  
  73. $(OBJS): script.h FPL.h Makefile.FILE
  74.  
  75. script.o:script.c
  76. numexpr.o:numexpr.c
  77. caller.o:caller.c
  78. statement.o:statement.c
  79. hash.o:hash.c
  80. memory.o:memory.c memory.h
  81. frontend.o:frontend.c
  82. reference.o:reference.c reference.h
  83. sprintf.o:sprintf.c
  84. scan.o:scan.c
  85. sscanf.o:sscanf.c
  86. compile.o:compile.c
  87.